﻿namespace AspNetCoreWebMiddleware.Middleware
{
    public static class CustomMiddleware
    {
        public static IApplicationBuilder UseCss(this IApplicationBuilder app)
        {
            app.UseMiddleware<CssMiddlewares>();
            return app;
        }

        public static IApplicationBuilder UseHtml(this IApplicationBuilder app)
        {
            app.UseMiddleware<HtmlMiddlewares>();
            return app;
        }

        public static IApplicationBuilder UseJs(this IApplicationBuilder app)
        {
            app.UseMiddleware<JsMiddlewares>();
            return app;
        }

        public static IApplicationBuilder UseException(this IApplicationBuilder app)
        {
            app.UseMiddleware<ExceptionMiddlewares>();
            return app;
        }
    }
}
